<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponGoodsProfit extends Migrator
{
    public function up(){
        $this->table('coupon_product_channel')
            ->addColumn('profit',"string",['limit' => 30,'default' =>'','comment'=>"预计佣金"])
            ->save();
    }

    public function down()
    {
        $this->table('coupon_product_channel')
            ->removeColumn('profit')
            ->save();
    }
}
